﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dem3
{
    class Program
    {
        static void Main(string[] args)
        {
            int max = 0;
            for (int i = 0; i < 3; i++) {
                Console.WriteLine("请输入数字");
                string str =Console.ReadLine();
                int num = int.Parse(str);
                if (num > max) { max = num; }
            }
            Console.WriteLine("最大值为" + max);
        }
    }
}
